<template>
  <div id="app">
    <c-header></c-header>
    <transition name="fade" mode="out-in">
      <router-view></router-view>
    </transition>
  </div>
</template>

<script setup>
import CHeader from "./components/title";


import { useUserStore } from "@/store/user";
import { useRouter } from "@/hooks/use-router";

const { login } = useUserStore()
const router = useRouter()

login({
        username: "admin", 
        password: "123456"
      }).then();

router.push({ path: "/encrypt_search/index" }).catch(() => {});
</script>

<style>
/* CSS */
</style>
